package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TRealNameVerificationMapper;
import com.ruoyi.system.domain.TRealNameVerification;
import com.ruoyi.system.service.ITRealNameVerificationService;

/**
 * 实名认证信息，存储用户多种证件及审核状态Service业务层处理
 * 
 * @author xiuddooo
 * @date 2025-09-17
 */
@Service
public class TRealNameVerificationServiceImpl implements ITRealNameVerificationService 
{
    @Autowired
    private TRealNameVerificationMapper tRealNameVerificationMapper;

    /**
     * 查询实名认证信息，存储用户多种证件及审核状态
     * 
     * @param id 实名认证信息，存储用户多种证件及审核状态主键
     * @return 实名认证信息，存储用户多种证件及审核状态
     */
    @Override
    public TRealNameVerification selectTRealNameVerificationById(String id)
    {
        return tRealNameVerificationMapper.selectTRealNameVerificationById(id);
    }

    /**
     * 查询实名认证信息，存储用户多种证件及审核状态列表
     * 
     * @param tRealNameVerification 实名认证信息，存储用户多种证件及审核状态
     * @return 实名认证信息，存储用户多种证件及审核状态
     */
    @Override
    public List<TRealNameVerification> selectTRealNameVerificationList(TRealNameVerification tRealNameVerification)
    {
        return tRealNameVerificationMapper.selectTRealNameVerificationList(tRealNameVerification);
    }

    /**
     * 新增实名认证信息，存储用户多种证件及审核状态
     * 
     * @param tRealNameVerification 实名认证信息，存储用户多种证件及审核状态
     * @return 结果
     */
    @Override
    public int insertTRealNameVerification(TRealNameVerification tRealNameVerification)
    {
        tRealNameVerification.setCreateTime(DateUtils.getNowDate());
        return tRealNameVerificationMapper.insertTRealNameVerification(tRealNameVerification);
    }

    /**
     * 修改实名认证信息，存储用户多种证件及审核状态
     * 
     * @param tRealNameVerification 实名认证信息，存储用户多种证件及审核状态
     * @return 结果
     */
    @Override
    public int updateTRealNameVerification(TRealNameVerification tRealNameVerification)
    {
        tRealNameVerification.setUpdateTime(DateUtils.getNowDate());
        return tRealNameVerificationMapper.updateTRealNameVerification(tRealNameVerification);
    }

    /**
     * 批量删除实名认证信息，存储用户多种证件及审核状态
     * 
     * @param ids 需要删除的实名认证信息，存储用户多种证件及审核状态主键
     * @return 结果
     */
    @Override
    public int deleteTRealNameVerificationByIds(String[] ids)
    {
        return tRealNameVerificationMapper.deleteTRealNameVerificationByIds(ids);
    }

    /**
     * 删除实名认证信息，存储用户多种证件及审核状态信息
     * 
     * @param id 实名认证信息，存储用户多种证件及审核状态主键
     * @return 结果
     */
    @Override
    public int deleteTRealNameVerificationById(String id)
    {
        return tRealNameVerificationMapper.deleteTRealNameVerificationById(id);
    }
}
